package com.park.web;

public class Ac{

	public static void main(String[] args) {
		String fileName = "kpp.sdsd.docx";
		System.out.println(fileName.endsWith(".doc"));
		System.out.println(fileName.lastIndexOf("."));
		System.out.println(fileName.substring(0,fileName.lastIndexOf(".")));
	}
}
